//下拉菜单
$(function () {
  // 我的聚美下拉
  $("#btn").mouseover(function () {
    $(".my-jumei-xiala").stop().slideDown(250)
  })

  $("#btn").mouseout(function () {
    $("#btn>.my-jumei-xiala").stop().slideUp(250)
  })
})




$(function () {
  // 我的聚美下拉
  $("#bot").mouseover(function () {
    $(".my-mobile-caidan").stop().slideDown(250)
  })

  $("#bot").mouseout(function () {
    $("#bot>.my-mobile-caidan").stop().slideUp(250)
  })
})






var olink = document.querySelectorAll('.centre-right-body .centre-right-body-nat a')
console.log(olink)
var oselection = document.querySelectorAll(".centre-right-middle>div");
for (var i = 0; i < olink.length; i++) {
  olink[i].setAttribute("index", i);
  olink[i].onclick = function () {
    for (var j = 0; j < olink.length; j++) {
      olink[j].classList.remove('centre-right-body-ding')
      oselection[j].style.display = "none";
    }
    this.classList.add('centre-right-body-ding')
    var a = this.getAttribute("index");
    oselection[a].style.display = "block";
    return false;
  }
}